var fs = require('fs');
var template = require('art-template');

fs.readFile('./data/tpl.html', function(err, data) {
  if (err) {
    console.log('File Not Found');
  }
  var ret = template.render(data.toString(), {
    name: 'Jack',
    age: 18,
    province: 'Beijing',
    hobbies: [
      'coding',
      'singing',
      'game'
    ]
  });
  console.log(ret);
});